import Vue from 'vue'
import VueRouter from 'vue-router'
// import Home from '../views/Home.vue'

Vue.use(VueRouter);

const routes = [
  // {
  //   path: '/',
  //   name: 'Home',
  //   component: Home
  // },
  {
    path: '/about',
    name: 'About',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  },
  {
        path: '/',
        name: 'Login',
        component: () => import(/* webpackChunkName: "about" */ '../views/Login.vue')
   },
  {
        path: '/ticket',
        name: 'Ticket',
        component: () => import(/* webpackChunkName: "about" */ '../views/Ticket.vue')
   },
  {
        path: '/order',
        name: 'Order',
        component: () => import(/* webpackChunkName: "about" */ '../components/Order.vue')
   },
    {
        path: '/register',
        name: 'register',
        component: () => import(/* webpackChunkName: "about" */ '../views/Register.vue')
    },
    // {
    //     path: '/user',
    //     name: 'user',
    //     component: () => import(/* webpackChunkName: "about" */ '../components/User.vue')
    // },
    {
        path: '/com',
        name: 'com',
        component: () => import(/* webpackChunkName: "about" */ '../components/Component.vue')
    },
    {
        path: '/User',
        name: 'User',
        component: () => import(/* webpackChunkName: "about" */ '../views/User.vue')
    }
    ,
    {
        path: '/MeiTuan',
        name: 'MeiTuan',
        component: () => import(/* webpackChunkName: "about" */ '../views/MeiTuan.vue')
    },
    {
        path: '/Admin',
        name: 'Admin',
        component: () => import(/* webpackChunkName: "about" */ '../views/Admin.vue')
    },
    {
        path: '/ImageUpload',
        name: 'ImageUpload',
        component: () => import(/* webpackChunkName: "about" */ '../views/ImageUpload.vue')
    }

];

const router = new VueRouter({
  routes
});

export default router
